﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Main.master" AutoEventWireup="true"
    CodeFile="ChangePassword.aspx.cs" Inherits="ChangePassword" %>

<asp:Content ID="cntMain" ContentPlaceHolderID="cphZone1" runat="Server">
    <asp:ValidationSummary runat="server" ValidationGroup="ChangePassword1" id="vsumChangePassword" HeaderText="&lt;b&gt;&amp;nbsp;There were some problems with your entries:&lt;/b&gt;" />
    <asp:ChangePassword ID="ChangePassword1" runat="server" CancelDestinationPageUrl="~/Default.aspx"
        ChangePasswordFailureText="Password incorrect or new password invalid.&lt;br&gt;New password length minimum: {0}."
        ContinueDestinationPageUrl="~/Default.aspx" Width="100%">
        <ChangePasswordTemplate>
            <asp:Panel runat="server" ID="pnlChangePassword" DefaultButton="ChangePasswordPushButton">
            <p class="sectionTitle">
                Change Password</p>
            <table>
                <tr>
                    <td class="label">
                        <asp:Label ID="CurrentPasswordLabel" runat="server" AssociatedControlID="CurrentPassword">Current password:</asp:Label>
                    </td>
                    <td>
                        <asp:TextBox ID="CurrentPassword" runat="server" TextMode="Password"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="CurrentPasswordRequired" runat="server" ControlToValidate="CurrentPassword"
                            ErrorMessage="Password is required." ToolTip="Password is required." ValidationGroup="ChangePassword1">&nbsp;</asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="label">
                        <asp:Label ID="NewPasswordLabel" runat="server" AssociatedControlID="NewPassword">New password:</asp:Label>
                    </td>
                    <td>
                        <asp:TextBox ID="NewPassword" runat="server" TextMode="Password"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="NewPasswordRequired" runat="server" ControlToValidate="NewPassword"
                            ErrorMessage="New password is required." ToolTip="New password is required."
                            ValidationGroup="ChangePassword1">&nbsp;</asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="label">
                        <asp:Label ID="ConfirmNewPasswordLabel" runat="server" AssociatedControlID="ConfirmNewPassword">Confirm new password:</asp:Label>
                    </td>
                    <td>
                        <asp:TextBox ID="ConfirmNewPassword" runat="server" TextMode="Password"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="ConfirmNewPasswordRequired" runat="server" ControlToValidate="ConfirmNewPassword"
                            ErrorMessage="Confirm new password is required." ToolTip="Confirm new password is required."
                            ValidationGroup="ChangePassword1">&nbsp;</asp:RequiredFieldValidator><asp:CompareValidator
                                ID="NewPasswordCompare" runat="server" ControlToCompare="NewPassword" ControlToValidate="ConfirmNewPassword"
                                Display="Dynamic" ErrorMessage="The confirm new password must match the new password entry."
                                ValidationGroup="ChangePassword1">&nbsp;</asp:CompareValidator>
                    </td>
                </tr>
                <tr>
                    <td colspan="2" style="color: Red;">
                        <asp:Literal ID="FailureText" runat="server" EnableViewState="False"></asp:Literal>
                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                        &nbsp;</td>
                </tr>
                <tr>
                    <td colspan="2">
                        <asp:Button ID="ChangePasswordPushButton" runat="server" CommandName="ChangePassword"
                            Text="Change Password" ValidationGroup="ChangePassword1" />&nbsp;<asp:Button ID="CancelPushButton"
                                runat="server" CausesValidation="False" CommandName="Cancel" Text="Cancel" />
                    </td>
                </tr>
            </table>
            </asp:Panel>
        </ChangePasswordTemplate>
        <SuccessTemplate>
            <p class="sectionTitle">
                Change Password Complete</p>
            <table>
                <tr>
                    <td>
                        Your password has been changed!
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Button ID="ContinuePushButton" runat="server" CausesValidation="False" CommandName="Continue"
                            Text="Continue" />
                    </td>
                </tr>
            </table>
        </SuccessTemplate>
    </asp:ChangePassword>
</asp:Content>
